package com.dxx.cloud.admin.module.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.math.BigDecimal;

@Schema(description = "添加商品规格请求体")
@Data
public class GoodsSizeAddRequest {

    @Schema(description = "商户id", example = "1")
    @NotNull
    private Long merId;

    @Schema(description = "门店id", example = "1")
    @NotNull
    private Long shopId;

    @Schema(description = "商品id", example = "1")
    @NotNull
    private Long goodsId;

    @Schema(description = "商品规格", example = "规格1")
    private String unit;

    @Schema(description = "皮重", example = "1")
    private BigDecimal tare;

    @Schema(description = "毛重", example = "1")
    private BigDecimal grossWeight;

    @Schema(description = "净重", example = "1")
    private BigDecimal netWeight;

    @Schema(description = "库存", example = "1")
    private BigDecimal inventory;

    @Schema(description = "单价", example = "1")
    private BigDecimal unitPrice;

    @Schema(description="图片地址",example = "png.png")
    private String icon;

    @Schema(description="条形码",example = "abcd12313123")
    private String barCode;

    @Schema(description="最小克重",example = "1")
    private Integer minGramWeight;

    @Schema(description="最大克重",example = "1")
    private Integer maxGramWeight;

    @Schema(description="创建者",example="admin")
    private String creator;

    @Schema(description="操作者",example="admin")
    private String operator;

}